Optimal. Leaf size=59 \[ -\frac {12083 x+11597}{162 \left (3 x^2+5 x+2\right )^2}+\frac {7 (20298 x+16651)}{162 \left (3 x^2+5 x+2\right )}-883 \log (x+1)+\frac {23825}{27} \log (3 x+2) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {816, 1660, 632, 31} \[ -\frac {12083 x+11597}{162 \left (3 x^2+5 x+2\right )^2}+\frac {7 (20298 x+16651)}{162 \left (3 x^2+5 x+2\right )}-883 \log (x+1)+\frac {23825}{27} \log (3 x+2) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 632
Rule 816
Rule 1660
Rubi steps
\begin {align*} \int \frac {(5-x) (3+2 x)^4}{\left (2+5 x+3 x^2\right )^3} \, dx &=\int \frac {\frac {13}{2} (3+2 x)^4-\frac {1}{2} (3+2 x)^5}{\left (2+5 x+3 x^2\right )^3} \, dx\\ &=-\frac {11597+12083 x}{162 \left (2+5 x+3 x^2\right )^2}-\frac {1}{2} \int \frac {\frac {13097}{81}-\frac {4624 x}{27}-\frac {64 x^2}{9}+\frac {32 x^3}{3}}{\left (2+5 x+3 x^2\right )^2} \, dx\\ &=-\frac {11597+12083 x}{162 \left (2+5 x+3 x^2\right )^2}+\frac {7 (16651+20298 x)}{162 \left (2+5 x+3 x^2\right )}+\frac {1}{2} \int \frac {\frac {15862}{9}-\frac {32 x}{9}}{2+5 x+3 x^2} \, dx\\ &=-\frac {11597+12083 x}{162 \left (2+5 x+3 x^2\right )^2}+\frac {7 (16651+20298 x)}{162 \left (2+5 x+3 x^2\right )}+\frac {23825}{9} \int \frac {1}{2+3 x} \, dx-2649 \int \frac {1}{3+3 x} \, dx\\ &=-\frac {11597+12083 x}{162 \left (2+5 x+3 x^2\right )^2}+\frac {7 (16651+20298 x)}{162 \left (2+5 x+3 x^2\right )}-883 \log (1+x)+\frac {23825}{27} \log (2+3 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 62, normalized size = 1.05 \[ \frac {1}{54} \left (47650 \log (-6 x-4)-\frac {3 \left (-47362 x^3-117789 x^2+15894 \left (3 x^2+5 x+2\right )^2 \log (-2 (x+1))-94986 x-24613\right )}{\left (3 x^2+5 x+2\right )^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.64, size = 93, normalized size = 1.58 \[ \frac {142086 \, x^{3} + 353367 \, x^{2} + 47650 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )} \log \left (3 \, x + 2\right ) - 47682 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )} \log \left (x + 1\right ) + 284958 \, x + 73839}{54 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 46, normalized size = 0.78 \[ \frac {47362 \, x^{3} + 117789 \, x^{2} + 94986 \, x + 24613}{18 \, {\left (3 \, x + 2\right )}^{2} {\left (x + 1\right )}^{2}} + \frac {23825}{27} \, \log \left ({\left | 3 \, x + 2 \right |}\right ) - 883 \, \log \left ({\left | x + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 48, normalized size = 0.81 \[ \frac {23825 \ln \left (3 x +2\right )}{27}-883 \ln \left (x +1\right )-\frac {10625}{54 \left (3 x +2\right )^{2}}+\frac {15500}{27 \left (3 x +2\right )}+\frac {3}{\left (x +1\right )^{2}}+\frac {101}{x +1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.49, size = 54, normalized size = 0.92 \[ \frac {47362 \, x^{3} + 117789 \, x^{2} + 94986 \, x + 24613}{18 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )}} + \frac {23825}{27} \, \log \left (3 \, x + 2\right ) - 883 \, \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.45, size = 49, normalized size = 0.83 \[ \frac {23825\,\ln \left (x+\frac {2}{3}\right )}{27}-883\,\ln \left (x+1\right )+\frac {\frac {23681\,x^3}{81}+\frac {39263\,x^2}{54}+\frac {1759\,x}{3}+\frac {24613}{162}}{x^4+\frac {10\,x^3}{3}+\frac {37\,x^2}{9}+\frac {20\,x}{9}+\frac {4}{9}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.19, size = 53, normalized size = 0.90 \[ - \frac {- 47362 x^{3} - 117789 x^{2} - 94986 x - 24613}{162 x^{4} + 540 x^{3} + 666 x^{2} + 360 x + 72} + \frac {23825 \log {\left (x + \frac {2}{3} \right )}}{27} - 883 \log {\left (x + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________